<?php

use yii\helpers\Html;

$this->title = 'Error';
?>
<div class="site-error">

    <h1><?= Html::encode($this->title) ?></h1>

    <?php if (isset($code)) : ?>
        <div class="alert alert-danger">
            <strong>Error Code : </strong>
            <?= nl2br(Html::encode($code)) ?>
        </div>
    <?php endif; ?>

    <div class="alert alert-danger">
        <strong>Error Message : </strong>
        <?= nl2br(Html::encode($message)) ?>
    </div>

</div>
